﻿Namespace SchoolClick.Models
    Public Class ChangePasswordModel
        <Required(ErrorMessageResourceName:="Error_Field_Required", ErrorMessageResourceType:=GetType(JertiFramework.My.Resources.JFLibraryErrors))> _
        <DataType(DataType.Password)> _
        <JFTipoField(JFControlType.Password)> _
        <Display(Name:="Contraseña actual")> _
        Property OLD_Password As String

        <Required(ErrorMessageResourceName:="Error_Field_Required", ErrorMessageResourceType:=GetType(JertiFramework.My.Resources.JFLibraryErrors))> _
        <DataType(DataType.Password)> _
        <JFTipoField(JFControlType.Password)> _
        <Display(Name:="Nueva contraseña")> _
        <MinLength(6, ErrorMessageResourceName:="Error_Length_PWD", ErrorMessageResourceType:=GetType(JertiFramework.My.Resources.JFLibraryErrors))> _
        Property NEW_Password As String

        <Required(ErrorMessageResourceName:="Error_Field_Required", ErrorMessageResourceType:=GetType(JertiFramework.My.Resources.JFLibraryErrors))> _
        <DataType(DataType.Password)> _
        <JFTipoField(JFControlType.Password)> _
        <Display(Name:="Repetir nueva contraseña")> _
        <MinLength(6, ErrorMessageResourceName:="Error_Length_PWD", ErrorMessageResourceType:=GetType(JertiFramework.My.Resources.JFLibraryErrors))> _
        <Mvc.Compare("NEW_Password", ErrorMessageResourceName:="Error_Compare_New_PWD", ErrorMessageResourceType:=GetType(JertiFramework.My.Resources.JFLibraryErrors))> _
        Property Confirm_NEW_Password As String
    End Class
End Namespace
